package xxl.robotlegs.extensions.enhancedlogging.impl 
{
	import flash.utils.Dictionary;
	import xxl.ioc.dependencyproviders.IDependencyProvider;
	import xxl.ioc.Injector;
	import xxl.robotlegs.framework.api.IContext;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class LoggerProvider implements IDependencyProvider 
	{
		private var _context:IContext;
		
		public function LoggerProvider(context:IContext) 
		{
			_context = context;
		}
		
		/* INTERFACE xxl.ioc.dependencyproviders.IDependencyProvider */
		
		public function apply(targetType:Class, activeInjector:Injector, injectParameters:Dictionary):Object 
		{
			return _context.getLogger(targetType);
		}
		
		public function destroy():void 
		{
			
		}
		
	}

}